<?php

Yii::import('application.models._base.BaseAuctionBidLog');


class AuctionBidLog extends BaseAuctionBidLog
{
	public static function model($className=__CLASS__) {
		return parent::model($className);
	}
	public function relations()
	{
	    return array(
	     'AuctionInfo'=>array(self::BELONGS_TO, 'AuctionInfo', 'auction_id'),
	     'AuctionLimit'=>array(self::BELONGS_TO, 'AuctionLimit', 'auction_id'),
	    );
	}
	public function search_my(){
		$criteria = new CDbCriteria;
		$criteria->addCondition('customer_id='.yii::app()->user->id);
		$criteria->order="t.created desc";
		return  $a=new CActiveDataProvider($this, array(
				'criteria' => $criteria,
				'pagination'=>array(
						'pageSize'=>25, //当前页数显示记录条数
				),

		));
	}
}